<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String bp = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String __MANAGER = bp+"admin/";
String __SHOWMAINVIEW = __MANAGER+"showModule.do";
String __CREATEMENUBUTTON = __MANAGER+"createMenuButton.do";
%>

<!DOCTYPE html>
<html>
  <head>
    <title>SWIFT4J快速开发平台</title>
  </head>
  
<body>
	<div class="d-1 tab80">
		<h2 class="h2-ac">辨证结果</h2>
		
		<div class="d-b1">
		      <form name="syndresultForm1" onsubmit="return false;">
				<input type="hidden" name="syndresult.syndresId" value="${syndresult.syndresId }" /> 
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }" />
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r ">患者的主症为：</td>
		      	      	<td>
		      	      	      <input type="text" name="syndresult.symptom" value="${syndresult.symptom }">
		      	      	</td>
		      	      </tr>
		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="syndresultSave1()">保存</a>		      	
		      </form>
		</div>

		<div class="d-b1">
		      <form name="syndresultForm2" onsubmit="return false;">
				<input type="hidden" name="syndresult.syndresId" value="${syndresult.syndresId }" /> 
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }" />
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r d-ib">本次观察中，您认为辨证依据中对辨证结论的得出（单纯证候或复合证候）起较大决定作用的症征（可以是症状，可以是舌脉，或者两者均具）有：</td>
		      	      	<td id="moreInput" class="moreInput">
		      	      		<c:choose>
		      	      			<c:when test="${not empty syndresult.resultDtl }">
		      	      				<c:forEach items="${syndresult.resultDtl }" var="dtl">
			      	      	      		<input type="text" name="resultDtl" value="${dtl.name }">
			      	      	      		<input type="hidden" name="resultDtlId" value="${dtl.dtlId }">
		      	      	      		</c:forEach>
		      	      	      		<input type="button" value="添加" id="addBtn" onclick="addInput(this);">
		      	      	      	</c:when>
		      	      			<c:when test="${empty syndresult.resultDtl }">
		      	      	      		<input type="text" name="resultDtl" value="">
		      	      	      		<input type="hidden" name="resultDtlId" value="">
		      	      	      		<input type="button" value="添加" id="addBtn" onclick="addInput(this);">
		      	      	      	</c:when>
		      	      	    </c:choose>
		      	      	</td>
		      	      </tr>
		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="syndresultSave2()">保存</a>		      	
		      </form>
		</div>

		<div class="d-b1">
		      <form name="syndresultForm3" onsubmit="return false;">
				<input type="hidden" name="syndresult.syndresId" value="${syndresult.syndresId }" /> 
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }" />
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r pb220">中医辨证为：</td>
		      	      	<td>
		      	      	      <div class="p10">
		      	      	      	<h4>（1）辨证要素：</h4>
		      	      	      	<p class="pl20">定性：
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature1" value="1" <c:if test="${syndresult.nature1 == 1 }">checked="checked"</c:if> >湿</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature2" value="1" <c:if test="${syndresult.nature2 == 1 }">checked="checked"</c:if> >血瘀</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature3" value="1" <c:if test="${syndresult.nature3 == 1 }">checked="checked"</c:if> >气滞</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature4" value="1" <c:if test="${syndresult.nature4 == 1 }">checked="checked"</c:if> >湿热</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature5" value="1" <c:if test="${syndresult.nature5 == 1 }">checked="checked"</c:if> >痰</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature6" value="1" <c:if test="${syndresult.nature6 == 1 }">checked="checked"</c:if> >气虚</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature7" value="1" <c:if test="${syndresult.nature7 == 1 }">checked="checked"</c:if> >阳虚</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature8" value="1" <c:if test="${syndresult.nature8 == 1 }">checked="checked"</c:if> >阴虚</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.nature9" value="1" <c:if test="${syndresult.nature9 == 1 }">checked="checked"</c:if> >血虚</span>
		      	      	      	      <br />
		      	      	      	      <label for="dxOthers" class="pr10 mt10">其他：请说明</label><input type="text" id="dxOthers" name="syndresult.natureOther" value="${syndresult.natureOther }">
		      	      	      	</p>
		      	      	      	<p class="pl20">定位：
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.orien1" value="1" <c:if test="${syndresult.orien1 == 1 }">checked="checked"</c:if> >肺</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.orien2" value="1" <c:if test="${syndresult.orien2 == 1 }">checked="checked"</c:if> >脾</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.orien3" value="1" <c:if test="${syndresult.orien3 == 1 }">checked="checked"</c:if> >肝</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.orien4" value="1" <c:if test="${syndresult.orien4 == 1 }">checked="checked"</c:if> >肾</span>
		      	      	      	      <span class="pr10"><input type="checkbox" name="syndresult.orien5" value="1" <c:if test="${syndresult.orien5 == 1 }">checked="checked"</c:if> >心</span>
		      	      	      	      <br />
		      	      	      	      <label for="dwOthers" class="pr10 mt10">其他：请说明</label><input type="text" id="dwOthers" name="syndresult.orienOther" value="${syndresult.orienOther }">
		      	      	      	</p>
		      	      	      	<h4>（2）自行辨证结论：</h4>
		      	      	      	<p class="pl20"><input type="text" name="syndresult.selfResult" value="${syndresult.selfResult }"></p>
		      	      	      </div>
		      	      	</td>
		      	      </tr>
		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="syndresultSave3()">保存</a>		      	
		      </form>
		</div>

		<div class="d-b1 p15 fs16">
		      <h4 class="pl30">疗效判定标准</h4>
		      <p class="pl30">&nbsp;&nbsp;&nbsp;&nbsp;按照《中药新药治疗重症肌无力的临床研究指导原则》制定，并参照北京协和医院许贤豪教授《现代内科学》重症肌无力临床疗效分级制定。</p>
		      <p class="pl30">&nbsp;&nbsp;&nbsp;&nbsp;（1）临床近期治愈  临床症状和体征消失，能正常生活、学习和工作，停用一切治疗重症肌无力药物或药量减少3/4以上，一个月以上无复发。</p>
		      <p class="pl30">&nbsp;&nbsp;&nbsp;&nbsp;（2）显效  临床症状和体征明显好转，能自理生活、坚持学习或轻工作，治疗重症肌无力的药量减少1/2以上，一个月以上无复发。</p>
		      <p class="pl30">&nbsp;&nbsp;&nbsp;&nbsp;（3）好转  临床症状和体征有好转，生活自理能力有改善，治疗重症肌无力药物的用量减少四分之一以上，一个月以上无复发。</p>
		      <p class="pl30">&nbsp;&nbsp;&nbsp;&nbsp;（4）无效  临床症状和体征无好转，甚至恶化。</p>
		</div>

		<div class="d-b1 fs16">
		      <form name="syndresultForm4" onsubmit="return false;">
				<input type="hidden" name="syndresult.syndresId" value="${syndresult.syndresId }" /> 
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }" />
		            <h4 class="pl30">治疗结论</h4>
		            <span class="pr10 pl50"><input type="radio" name="syndresult.concl" value="1" <c:if test="${syndresult.concl == 1 }">checked="checked"</c:if> >临床近期治愈</span>
		            <span class="pr10"><input type="radio" name="syndresult.concl" value="2" <c:if test="${syndresult.concl == 2 }">checked="checked"</c:if> >显效</span>
		            <span class="pr10"><input type="radio" name="syndresult.concl" value="3" <c:if test="${syndresult.concl == 3 }">checked="checked"</c:if> >好转</span>
		            <span class="pr10"><input type="radio" name="syndresult.concl" value="4" <c:if test="${syndresult.concl == 4 }">checked="checked"</c:if> >无效</span>
		      </form>
		      <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="syndresultSave4()">保存</a>		      			 
		</div>


	</div>
	<script type="text/javascript">
		function syndresultSave1() {
			$(syndresultForm1).form('submit',{
				url: __MANAGER+'myastheniaDoc_syndresultSave1.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_syndresult').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function syndresultSave2() {
			$(syndresultForm2).form('submit',{
				url: __MANAGER+'myastheniaDoc_syndresultSave2.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_syndresult').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function syndresultSave3() {
			$(syndresultForm3).form('submit',{
				url: __MANAGER+'myastheniaDoc_syndresultSave3.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_syndresult').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function syndresultSave4() {
			$(syndresultForm4).form('submit',{
				url: __MANAGER+'myastheniaDoc_syndresultSave4.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_syndresult').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}

		function addInput(t){
			$('<input type="text" name="resultDtl" value="">').insertBefore($(t));
			$('<input type="hidden" name="resultDtlId" value="">').insertBefore($(t));
		}
	</script>
</body>
</html>
